import request from "@/utils/axiosHttp";


// 子账号分页列表
export function deviceUsersList(query) {
	return request({
		url: '/deviceUsers/juniorPageList',
		method: 'get',
		params: query
	})
}

// 修改子账号权限
export function deviceUsersUpdate(data) {
	return request({
		url: '/deviceUsers/updateJunior',
		method: 'post',
		data: data
	})
}

// 新增子账号
export function deviceUsersAdd(data) {
	return request({
		url: '/deviceUsers/addJunior',
		method: 'post',
		data: data
	})
}

// 解禁
export function deviceUsersUnBan(data) {
	return request({
		url: '/deviceUsers/unBanJunior',
		method: 'post',
		data: data
	})
}

// 禁用
export function deviceUsersBanJunior(data) {
	return request({
		url: '/deviceUsers/banJunior',
		method: 'post',
		data: data
	})
}
